package com.zhuifeng.orders.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhuifeng.common.core.annotation.Excel;
import com.zhuifeng.common.core.web.domain.BaseEntity;

/**
 * 订单对象 orders
 * 
 * @author zhuifeng
 * @date 2022-08-18
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private String ordersId;

    /** 下单人id */
    @Excel(name = "下单人id")
    private String userId;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal ordersPriceSum;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private BigDecimal ordersPayPrice;

    /** 订单状态（1，提交未付款2，已付款未收货3，已收货） */
    @Excel(name = "订单状态", readConverterExp = "1=，提交未付款2，已付款未收货3，已收货")
    private Integer ordersState;

    /** 收货地址id */
    @Excel(name = "收货地址id")
    private String siteId;

    /** 快递id */
    @Excel(name = "快递id")
    private String expressId;

    /** 快递单号 */
    @Excel(name = "快递单号")
    private String ordersExpressno;

    /** 订单来源【1=》App订单，2=》直播订单，3=》抽奖福利订单】 */
    @Excel(name = "订单来源【1=》App订单，2=》直播订单，3=》抽奖福利订单】")
    private Integer ordersSource;

    /** 支付方式 (1=&gt;未支付，2=》正在支付，3，支付宝，4，微信，5，银行卡) */
    @Excel(name = "支付方式 (1=&gt;未支付，2=》正在支付，3，支付宝，4，微信，5，银行卡)")
    private Integer ordersPayWay;

    /** 支付交易号 */
    @Excel(name = "支付交易号")
    private String ordersTradeno;

    /** 是否删除（0，已删除，1未删除） */
    private Integer isDelete;

    /** 支付信息 */
    @Excel(name = "支付信息")
    private String ordersTradeext;

    /** 乐观锁 */
    private String revision;

    public void setOrdersId(String ordersId) 
    {
        this.ordersId = ordersId;
    }

    public String getOrdersId() 
    {
        return ordersId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setOrdersPriceSum(BigDecimal ordersPriceSum) 
    {
        this.ordersPriceSum = ordersPriceSum;
    }

    public BigDecimal getOrdersPriceSum() 
    {
        return ordersPriceSum;
    }
    public void setOrdersPayPrice(BigDecimal ordersPayPrice) 
    {
        this.ordersPayPrice = ordersPayPrice;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public BigDecimal getOrdersPayPrice() {
        return ordersPayPrice;
    }

    public Integer getOrdersState() {
        return ordersState;
    }

    public void setOrdersState(Integer ordersState) {
        this.ordersState = ordersState;
    }

    public void setSiteId(String siteId) {
        this.siteId = siteId;
    }

    public String getSiteId()
    {
        return siteId;
    }
    public void setExpressId(String expressId) 
    {
        this.expressId = expressId;
    }

    public String getExpressId() 
    {
        return expressId;
    }
    public void setOrdersExpressno(String ordersExpressno) 
    {
        this.ordersExpressno = ordersExpressno;
    }

    public String getOrdersExpressno() {
        return ordersExpressno;
    }

    public Integer getOrdersSource() {
        return ordersSource;
    }

    public void setOrdersSource(Integer ordersSource) {
        this.ordersSource = ordersSource;
    }

    public Integer getOrdersPayWay() {
        return ordersPayWay;
    }

    public void setOrdersPayWay(Integer ordersPayWay) {
        this.ordersPayWay = ordersPayWay;
    }

    public String getOrdersTradeno() {
        return ordersTradeno;
    }

    public void setOrdersTradeno(String ordersTradeno) {
        this.ordersTradeno = ordersTradeno;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public void setOrdersTradeext(String ordersTradeext) {
        this.ordersTradeext = ordersTradeext;
    }

    public String getOrdersTradeext()
    {
        return ordersTradeext;
    }
    public void setRevision(String revision) 
    {
        this.revision = revision;
    }

    public String getRevision() 
    {
        return revision;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ordersId", getOrdersId())
            .append("userId", getUserId())
            .append("ordersPriceSum", getOrdersPriceSum())
            .append("ordersPayPrice", getOrdersPayPrice())
            .append("ordersState", getOrdersState())
            .append("siteId", getSiteId())
            .append("expressId", getExpressId())
            .append("ordersExpressno", getOrdersExpressno())
            .append("ordersSource", getOrdersSource())
            .append("ordersPayWay", getOrdersPayWay())
            .append("ordersTradeno", getOrdersTradeno())
            .append("isDelete", getIsDelete())
            .append("ordersTradeext", getOrdersTradeext())
            .append("revision", getRevision())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
